import request from '@/utils/request'

export function listAllSupplier() {
  return request({
    url: 'mgcmanage/supplier/all',
    method: 'get',
  })

}

// 查询采购入库信息列表
export function listPurchase2() {
  return request({
    url: '/mgcmanage/audit/',
    method: 'get',
  })
}

// 新增供应商
export function addSupplier(data) {
  return request({
    url: '/mgcmanage/supplier',
    method: 'post',
    data: data
  })
}

// 审核通过操作
export function getPass(noIds2) {
  return request({
    url: '/mgcmanage/audit/' + noIds2,
    method: 'get'
  })
}



// 修改供应商
export function updateSupplier(data) {
  return request({
    url: '/mgcmanage/supplier',
    method: 'put',
    data: data
  })
}

// 删除供应商
export function delPurchase(noIds) {
  return request({
    url: '/mgcmanage/purchase/' + noIds,
    method: 'delete'
  })
}
